﻿#include "TcpCodec_ReadSensorData.h"

#include "TcpCodec.h"

TcpCodec_ReadSensorData::TcpCodec_ReadSensorData()
{
setObjectName(getClassNameFirstLow<TcpCodec_ReadSensorData>());
}

TcpCodec_ReadSensorData::~TcpCodec_ReadSensorData()
{

}

void TcpCodec_ReadSensorData::decode(DataPackage_TcpCodec* dataPackageInfo_User)
{

}

TcpCodec* TcpCodec_ReadSensorData::getTcpCodec()const
{
  return tcpCodec;
}

TcpCodec_ReadSensorData* TcpCodec_ReadSensorData::setTcpCodec(TcpCodec* const tcpCodec)
{
  this->tcpCodec=tcpCodec;
  tcpCodec->addToCodecMap(TcpCodec_ReadSensorData::ReadSensorData,this);
  printInjection(this,tcpCodec);
  return this;
}

void TcpCodec_ReadSensorData::objectAutoInjection(QHash<QString,QObject*>* objMap)
{
setTcpCodec(getObjFromMap<TcpCodec>(objMap));
}
